package com.pmcc.core.repository;

import com.pmcc.core.entity.Employee;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Tomas on 2018/4/9.
 */
public interface EmployeeRepository extends JpaRepository<Employee, String> {
    Employee findByUserName(String username);
    Page<Employee> findAll(Specification<Employee> spec, Pageable var1);
    List<Employee> findBySaleMan(boolean saleMan);
}
